package org.wattdepot.cli;

import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Test;
import org.wattdepot.resource.source.jaxb.Source;

/** 
 * Test the output of the fuel types command.
 * @author Edwin Lim, Wing Ma Cheung
 *
 */
public class TestFuelTypes {  
 /**
  * Checks if the input is valid and that the output is correct. 
  * @throws Exception is the output is invalid
  */
  @Test
  public void testCarbonContentSource() throws Exception {
    CommandLineInterface cli = new CommandLineInterface();
    String command = "fueltypes SIM_KAHE_1";
    List<String> arguments = CommandLineInterface.deliminateCommand(command);
    String result = arguments.get(1);
    Source source = cli.searchSource(result);
    assertEquals("Check source input", source.getProperty("fuelType"), "LSFO");   
  }
  
}
